Skip to content

Conversation

mstock
Copy link

@mstock mstock commented Apr 11, 2025

There currently are two issues caused by event propagation:

  • Clicking on the close button in the way point list moves or places the start or end marker to/at the position of the close button.
  • Trying to scroll the itinerary in Firefox results in zooming of the map in the background instead of scrolling the itinerary.

This should get fixed by this PR.

mstock added 2 commits April 11, 2025 22:37
Otherwise, the event bubbles up to the map and changes the start or end
point of the route to the position of the close button.
Firefox does not support the deprecated [1] 'mousewheel' event, so
scrolling when over the itinerary element resulted in zooming of the map
instead of scrolling the itinerary as the event is propagated. According
to [2], the 'mousewheel' event must currently still be supported because
of Safari.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Element/mousewheel_event
[2] https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant